import React from 'react';
import {View, Text} from 'react-native';
import {Button} from '@rneui/base';

import {createNativeStackNavigator} from '@react-navigation/native-stack';
const NativeStack = createNativeStackNavigator();
import {createDrawerNavigator} from '@react-navigation/drawer';
const DrawerStack = createDrawerNavigator();


import Main from './Main';
import Setting from './Setting';

const routeParentPath = 'WxBus';
export default () => {

  return (
      <NativeStack.Navigator screenOptions={{headerShown: false, animation: 'slide_from_right'}}>
        <NativeStack.Screen
          name={`${routeParentPath}/Main`}
          component={Main}
        />
        <NativeStack.Screen
          name={`${routeParentPath}/Setting`}
          component={Setting}
          options={{
            headerShown: true,
            title: "设置"
          }}
        />
      </NativeStack.Navigator>
  );
};
